package com.vlada.studzad.model;

import java.util.Date;
import java.util.List;

import org.apache.tapestry5.beaneditor.Validate;
import org.apache.tapestry5.ioc.annotations.Inject;

public class JobOffer {
	private long jobOfferID;
	private String shortDescription;
	private String longDescription;
	private TypeOfWork typeOfWork;
	private Date validateDate;
	private List<Student> appliedStudents;
	
	@Inject
	public JobOffer(){
		
	}

	public JobOffer(String shortDescription,
			String longDescription, TypeOfWork typeOfWork, Date validateDate) {
		super();
		this.shortDescription = shortDescription;
		this.longDescription = longDescription;
		this.typeOfWork = typeOfWork;
		this.validateDate = validateDate;
	}
	
	@Validate("required")
	public long getJobOfferID() {
		return jobOfferID;
	}

	public void setJobOfferID(long jobOfferID) {
		this.jobOfferID = jobOfferID;
	}
	
	@Validate("required")
	public String getShortDescription() {
		return shortDescription;
	}

	public void setShortDescription(String shortDescription) {
		this.shortDescription = shortDescription;
	}
	
	@Validate("required")
	public String getLongDescription() {
		return longDescription;
	}

	public void setLongDescription(String longDescription) {
		this.longDescription = longDescription;
	}
	
	@Validate("required")
	public TypeOfWork getTypeOfWork() {
		return typeOfWork;
	}

	public void setTypeOfWork(TypeOfWork typeOfWork) {
		this.typeOfWork = typeOfWork;
	}
	
	@Validate("required")
	public Date getValidateDate() {
		return validateDate;
	}

	public void setValidateDate(Date validateDate) {
		this.validateDate = validateDate;
	}

	public List<Student> getAppliedStudents() {
		return appliedStudents;
	}

	public void setAppliedStudents(List<Student> appliedStudents) {
		this.appliedStudents = appliedStudents;
	}
	
	
	
	
	
}
